<div class="user">
	<div class="user-header">
		<a href="html/settings.html">
			<img src="images/banner.png" alt="" />
		</a>
		<a href="">
			<p>
				<span>
					<i class="fa fa-bell-o"></i>
					我的消息
					<i class="info">1</i>
				</span>
				<i class="fa fa-angle-right right"></i>
			</p>
		</a>
	</div>
	<div class="article">
		<div class="like" id="like">
			<div class="like1">
				<span>喜欢的收藏品</span>
			</div>
			<div class="like2">
				<span>喜欢的攻略</span>
			</div>
		</div>
		<div class="list" id="list">
			<ul>
				<li>
					<div class="name">
						<img src="images/ciqiglass.png" alt="" />
						<div>
							<h3>瓷器水杯</h3>
							<span>2个</span>
						</div>
					</div>
					<i class="fa fa-angle-right"></i>
				</li>
				<li>
					<div class="name">
						<img src="images/mu.png" alt="" />
						<div>
							<h3>木</h3>
							<span>2个</span>
						</div>
					</div>
					<i class="fa fa-angle-right"></i>
				</li>
			</ul>
			<ul>
				<li>
					<div class="name">
						<img src="images/mu.png" alt="" />
						<div>
							<h3>木</h3>
							<span>2个</span>
						</div>
					</div>
					<i class="fa fa-angle-right"></i>
				</li>
				<li>
					<div class="name">
						<img src="images/ciqiglass.png" alt="" />
						<div>
							<h3>陶瓷水杯</h3>
							<span>2个</span>
						</div>
					</div>
					<i class="fa fa-angle-right"></i>
				</li>
			</ul>
		</div>
	</div>
</div>
<script>
		function run(a, b) {
		    a.click (function () {
		        b.show().siblings().hide();
		    });
		}
		var x=$("#list").children();
		var y=$("#like").children();
		x.each(function(i){
		    run(y.eq(i), x.eq(i));
		});
</script>